/* package_01/pages/scroll-x/index.wxss */

@themeColor: #A68E49;

@submitBgColor: #C5AF6F;

@fontColor: #333333;
@labelColor: #75777C;
@placeholderColor: #CCCCCC;
@requireColor: #FF3141;
@fontRedColor: #F72E17;
@fontWhiteColor: #FFFFFF;

.scroll-x-container{
  box-sizing: border-box;
  padding: 32rpx;
  // 未登录时 定位按钮登录
  .relative-wrap{
    position: relative;
    display: inline-block;
  
    .login-btn{
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      z-index: 999;
      // outline: 1px solid pink;
    }
  }
  
  .coupons-scroll-wrap{
    position: relative;
    left: -32rpx;
    box-sizing: border-box;
    width: 120%;
    padding-right: 75rpx;
    padding-top: 16rpx;
  
    .coupons-scroll {
      box-sizing: border-box;
      width: 100%;
      height: 160rpx;
    }
  
    .coupons-items {
      white-space: nowrap;
  
      .coupons-item {
        display: inline-block;
        width: 296rpx;
        height: 160rpx;
        background: linear-gradient( 135deg, #FC6A41 0%, #FC4F56 100%);
        border-radius: 24rpx;
        margin: 0 12rpx;
  
        .coupons-item-wrap{
          box-sizing: border-box;
          width: 100%;
          height: 100%;
          display: flex;
          justify-content: space-between;
          padding: 6rpx;
  
          .coupons-item-left{
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 83%;
            height: 100%;
            background: #FFF4F3;
            font-family: SourceHanSansSC, SourceHanSansSC;
            color: @fontRedColor;
            border-radius: 24rpx;
  
            &::after{
              content: '';
              position: absolute;
              right: -16rpx;
              top: 50%;
              transform: translateY(-50%);
              width: 28rpx;
              height: 28rpx;
              border-radius: 50%;
              background: #FC5650;
            }
  
            .price{
              font-weight: 600;
              font-size: 56rpx;
              line-height: 82rpx;
  
              .price-unit{
                font-weight: 500;
                font-size: 32rpx;
                line-height: 48rpx;
              }
            }
            .restrictions{
              font-size: 24rpx;
              line-height: 36rpx;
            }
          }
  
          .coupons-item-right{
            box-sizing: border-box;
            width: 17%;
            height: 100%;
            font-family: PingFangSC, PingFang SC;
            font-weight: 500;
            font-size: 24rpx;
            color: @fontWhiteColor;
            line-height: 26rpx;
            text-align: center;
            padding-left: 14rpx;
            writing-mode: vertical-lr;
            /* 强制字符拆分，每个字符单独占一行 */
            word-break: break-all; 
            /* 调整字符间距 */
            letter-spacing: 4rpx;
          }
        }
      }
    }
  
  }

  .project-item-wrap-scroll{
    position: relative;
    left: -40rpx;
    box-sizing: border-box;
    width: 120%;
    padding-right: 67rpx;
    padding-top: 16rpx;

    .project-item-scroll {
      box-sizing: border-box;
      width: 100%;
    }

    .project-item-scroll-items {
      display: flex;
      gap: 26rpx;
      padding: 0 36rpx;

      .project-item-scroll-item {
        // display: inline-block;
        flex-shrink: 0;
        width: 212rpx;
        border-radius: 24rpx;

        &:last-child{
          padding-right: 32rpx;
        }

        .item-content{
          width: 100%;
          height: 200rpx;
          outline: 1rpx solid pink;
        }
      }
    }
  }
}